// 试情管理
import breeding from "@/api/axios";
export default {
  // 分页查询 /breeding/breeding/v2/tryLove/queryPageByCondition/{raiseRecordId}
  postQueryPageByCondition(id, params) {
    return breeding.sheepOut.post(`/breeding/breeding/v2/tryLove/queryPageByCondition/${id}`, params)
  },
  // 接口获取试情母羊 /v1/bion/queryBionByMatrix/{breed}
  getQueryBionByMatrix(params) {
    return breeding.sheepOut.post(`/breeding/breeding/v2/raiseRecord/queryFemale/${params}`)
  },

  // 获取所有怀孕湖羊下拉列表/v1/bion/queryBionByStage/{breed}/{stage}
  getQueryBionByStage(params) {
    return breeding.sheepOut.post(`/breeding/breeding/v2/raiseRecord/queryFemale/${params}`)
  },
  // 添加试情记录 /breeding/breeding/v2/tryLove/add
  postAdd(params) {
    return breeding.sheepOut.post("/breeding/breeding/v2/tryLove/add", params)
  },
  // 删除试情记录/breeding/breeding/v2/tryLove/del/{tryLoveId}
  getDel(params) {
    return breeding.sheepOut.get(`/breeding/breeding/v2/tryLove/del/${params}`)
  },
  // 修改试情记录 /breeding/breeding/v2/tryLove/edit
  postEdit(params) {
    return breeding.sheepOut.post("/breeding/breeding/v2/tryLove/edit", params)
  },
  // 删除试情记录 /breeding/breeding/v2/tryLove/delByIdList
  postDelByIdList(params) {
    // console.log('删除', params)
    return breeding.sheepOut.post("/breeding/breeding/v2/tryLove/delByIdList", params)
  }
}
